package com.xrc.HomeWork.jicheng;

public class AccountTest {
    public static void main(String[] args) {
        CheckAccount account=new CheckAccount();
        account.setId(1122);
        account.setBalance(20000);
        account.setAnnualInterestRate(0.045);
        /*account.withdraw(30000);
        account.withdraw(2500);
        account.deposit(3000);*/
        account.overdraft=5000.0;
        account.withdraw(5000);
       account.withdraw(18000);
        account.withdraw(3000);


    }
}
